Chapter 2 - Geometric Shapes
This chapter describes the geometric shapes. In particular, it shows you how you can
Before you read this chapter, you should be familiar with some of the information in Inside Macintosh: QuickDraw GX Objects. In particular, you should read the chapters "Introduction to QuickDraw GX Objects" and "Shape Objects" in that book.
- define geometries
- create geometric shapes
- manipulate their shape type, shape fill, and geometry properties
- draw the shapes
The next chapter, "Geometric Styles," discusses the stylistic variations you can apply to geometric shapes.
Chapter 4, "Geometric Operations," describes the functions QuickDraw GX provides for performing operations on the geometries of geometric shapes--operations such as intersection, union, and so on.
For information about applying colors and transfer modes to geometric shapes, you should read the chapter "Ink Objects" in Inside Macintosh: QuickDraw GX Objects.
For information about applying mapping transformations to geometric shapes, clipping geometric shapes, and hit-testing geometric shapes, see the chapter "Transform Objects" in Inside Macintosh: QuickDraw GX Objects.
Chapter Contents
- About Geometric Shapes
- The Geometric Properties of Shape Objects
- Shape Type
- Shape Geometry
- Shape Fill
- The Geometric Shape Types
- Empty Shapes and Full Shapes
- Point Shapes
- Line Shapes
- Curve Shapes
- Rectangle Shapes
- Polygon Shapes
- Path Shapes
- Using Geometric Shapes
- Creating and Drawing Empty Shapes and Full Shapes
- Creating and Drawing Points
- Creating and Drawing Lines
- Creating and Drawing Curves
- Creating and Drawing Rectangles
- Creating and Drawing Polygons
- Creating Polygons With a Single Contour
- Creating Polygons With Multiple Contours
- Creating Polygons With Crossed Contours
- Creating and Drawing Paths
- Creating Paths With a Single Contour
- Creating Paths Using Only Off-Curve Points
- Creating Paths With Multiple Contours
- Converting Between Geometric Shape Types
- Converting Shapes to Points, Lines, and Rectangles
- Converting Shapes to Curve Shapes
- Converting Shapes to Polygons and Paths
- Replacing Geometric Points
- Editing Polygon Parts
- Editing Paths Parts
- Editing Shape Parts
- Applying Functions Described Elsewhere to Geometric Shapes
- Shape-Related Functions Applicable to Geometric Shapes
- Other Functions Applicable to Geometric Shapes
- Geometric Shapes Reference
- Data Types
- The Point Structure
- The Line Structure
- The Curve Structure
- The Rectangle Structure
- Polygon Structures
- Path Structures
- Functions
- Creating Geometric Shapes
- Getting and Setting Shape Geometries
- Editing Shape Geometries
- Drawing Geometric Shapes
- Summary of Geometric Shapes
- Constants and Data Types
- The Point Structure
- The Line Structure
- The Curve Structure
- The Rectangle Structure
- Polygon Structures
- Path Structures
- Functions
- Creating Geometric Shapes
- Getting and Setting Shape Geometries
- Editing Shape Geometries
- Drawing Geometric Shapes
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help